package com.itheima.service.db;

import com.itheima.domain.db.TestSoul;
import com.itheima.domain.db.TestSoulQuestion;
import com.itheima.domain.db.TestSoulQuestionsOption;
import com.itheima.vo.PageBeanVo;

import java.util.List;

//问卷模块
public interface TestSoulService {

    //查询问卷列表
    List<TestSoul> findTest(Long userId);

    //查询题目列表
    PageBeanVo testSoulList(Integer pageNum, Integer pageSize, String name);

    //查看问题列表
    PageBeanVo QuestionList(Integer pageNum,Integer pageSize,String name,Long timuId);

    //查询答案列表
    PageBeanVo answerList(Integer pageNum,Integer pageSize,String name,Long wentiId);

    //新增答案
    void addAnswer(TestSoulQuestionsOption testSoulQuestionsOption);

    //修改答案
    void editAnswer(TestSoulQuestionsOption testSoulQuestionsOption);

    //根据id删除答案
    void deleteAnswer(Long answerId);

    //根据问题id查询答案数量
    Integer findAnswerByQuestionId(Long questionId);

    //根据id删除问题
    void deleteQuestion(Long questionId);

    //新增问题
    void addQuestion(TestSoulQuestion testSoulQuestion);

    //新增题目
    void addTest(TestSoul testSoul);

    //查询题目下问题数量
    Integer findQuestionByTestId(Long testId);

    //删除题目
    void deleteTest(Long testId);
}
